package com.zzh.util.excel.registry;



import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ExcelImportDateListRegistry<T>{

    private static final Map<String,List<?>> failDataMap = new HashMap<>();
    private static final Map<String,List<?>> successDataMap = new HashMap<>();

    public static <T> void register(String errorKey, List<T> failData, List<T> successData) {
        failDataMap.put(errorKey,failData);
        successDataMap.put(errorKey,successData);
    }

    public static List<?> getFailData(String key) {
        return failDataMap.get(key);
    }
    public static List<?> getSuccessData(String key) {
        return successDataMap.get(key);
    }
    public static void clean(String key) {
        failDataMap.remove(key);
        successDataMap.remove(key);
    }


}
